The GENERIC Sample is a kernel-mode library used by most of the book sample drivers.
The sample includes one component:
You may find differences in the electronic copy of GENERIC and the code described in the book. Those differences have arisen because I continued (and still continue) to improve GENERIC after the book was frozen by the editorial process.
To build GENERIC.SYS, follow the general instructions for building a WDM sample. The Microsoft Visual C++ project file is named GENERIC.DSP.
It’s not necessary for you to specifically install GENERIC.SYS. In fact, the setup program for the book samples automatically does this for you because most of the other samples depend on it being present. If you rebuild the DEBUG version of GENERIC, the build script will copy your new GENERIC.SYS module to the Drivers directory. It will be used the next time you restart your system.
If you're using a separate machine for testing than where you installed the sample programs, be sure to copy the original and any rebuilt version of GENERIC.SYS from the OBJCHK\I386 to the drivers directory by hand.
GENERIC is an exception to the blanket license to use the sample programs for this book. The author will grant a royalty-free license to anyone to redistribute GENERIC as part of a WDM driver package. The license will, however, include conditions designed to insure the consistency and quality of GENERIC on end user machines. Send e-mail to waltoney@oneysoft.com for information about obtaining this conditional license.